package spms.data.service;

import spms.util.Page;

import java.util.List;

public interface BaseService<T> {
    int count(String tableName);

    List<T> findAll(Class<T> clazz) throws Exception;

    List<T> findAll(T t) throws Exception;

    Page<T> findPage(int pageNum, int pageSize, Class<T> clazz) throws Exception;
}
